﻿using LimaLims.Application.Service.Base.Dto;
using LimaLims.Core;

namespace LimaLims.Application.Service.Sys.Dto
{
    /// <summary>
    /// 新增站内消息
    /// </summary>
    public class AddSysMessageInput : BaseDto
    {
        /// <summary>
        /// 权限
        /// </summary>
        public string Permission { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 参数
        /// </summary>
        public long? ParamId { get; set; }

        /// <summary>
        /// 业务标签
        /// </summary>
        public string Tag { get; set; }

        /// <summary>
        /// 业务路由
        /// </summary>
        public string Url { get; set; }
    }

    /// <summary>
    /// 用户站内信
    /// </summary>
    public class SysMessageOutput : BaseDto
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 参数
        /// </summary>
        public long? ParamId { get; set; }

        /// <summary>
        /// 业务标签
        /// </summary>
        public string Tag { get; set; }

        /// <summary>
        /// 业务路由
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 是否阅读
        /// </summary>
        public bool IsRead { get; set; }

    }

    /// <summary>
    /// 站内信分页
    /// </summary>
    public class SysMessagePageInput : PageInputBase
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public long? UserId { get; set; }
        /// <summary>
        /// 是否已读
        /// </summary>
        public bool? IsRead { get; set; }
    }
}
